sample/sample.d(30,20): Error: `@safe` function `sample.toStderr` cannot call `@system` function `std.stdio.makeGlobal!"core.stdc.stdio.stderr".makeGlobal` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/stdio.d(4792,20): `std.stdio.makeGlobal!"core.stdc.stdio.stderr".makeGlobal` is declared here source/backtrace/backtrace.d(64,31): Error: `@safe` function `backtrace.backtrace.getBacktrace` cannot call `@system` function `backtrace.backtrace.getBacktrace.getBasePtr` source/backtrace/backtrace.d(56,19): `backtrace.backtrace.getBacktrace.getBasePtr` is declared here source/backtrace/backtrace.d(65,24): Error: cast from `void*` to `void**` not allowed in safe code source/backtrace/backtrace.d(69,21): Error: cannot take address of local `dummy` in `@safe` function `getBacktrace` source/backtrace/backtrace.d(73,34): Error: pointer arithmetic not allowed in @safe functions source/backtrace/backtrace.d(74,20): Error: cast from `void*` to `void**` not allowed in safe code source/backtrace/backtrace.d(96,40): Error: `backtrace.ptr` cannot be used in `@safe` code, use `&backtrace[0]` instead source/backtrace/backtrace.d(98,34): Error: safe function `backtrace.backtrace.getBacktraceSymbols` cannot index pointer `c_symbols` source/backtrace/backtrace.d(100,7): Error: `@safe` function `backtrace.backtrace.getBacktraceSymbols` cannot call `@system` function `core.stdc.stdlib.free` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(164,9): `core.stdc.stdlib.free` is declared here source/backtrace/backtrace.d(119,52): Error: `@safe` function `backtrace.backtrace.getLineTrace` cannot call `@system` function `std.stdio.File.readln!dstring.readln` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/stdio.d(1638,7): `std.stdio.File.readln!dstring.readln` is declared here source/backtrace/backtrace.d(141,20): Error: `@safe` function `backtrace.backtrace.printPrettyTrace` cannot call `@system` function `std.stdio.makeGlobal!"core.stdc.stdio.stdout".makeGlobal` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/stdio.d(4792,20): `std.stdio.makeGlobal!"core.stdc.stdio.stdout".makeGlobal` is declared here source/backtrace/backtrace.d(227,31): Error: `@safe` function `backtrace.backtrace.getPrettyTrace` cannot call `@system` function `std.stdio.File.byLine!(char, char).byLine` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/stdio.d(2283,10): `std.stdio.File.byLine!(char, char).byLine` is declared here /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.